package com.shensi.api.admin.client.fallback.label;

import com.shensi.api.admin.client.monitor.SysLogininforClient;
import feign.hystrix.FallbackFactory;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author: budian
 * @since: 2023/12/6
 */
@Slf4j
@Component
public class CustomerLabelHistoryClientFallBack implements FallbackFactory<SysLogininforClient> {
    @Setter
    private Throwable cause;

    @Override
    public SysLogininforClient create(Throwable throwable) {
        log.error("微服务接口调用失败： {}", throwable.getMessage());
        return null;
    }
}
